package com.stdspringboot.service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import com.stdspringboot.entity.Leave;
import com.stdspringboot.vo.JsonResult;
import com.stdspringboot.vo.LeaveVO;

import java.util.List;

public interface ILeaveService {

    /**
     * 根据申请人查询
     * @param applicant 申请人
     * @return List
     */
    public PageInfo query(String applicant, int pageNum, int pageSize);


    public int deleteById(String id);

    public int add(Leave leave);

    public LeaveVO showById(String id);

    public int modifyById(LeaveVO leave);
}
